﻿@{
    Layout = null;
}
@model  IEnumerable<Weixin.MP.DAL.WeixinMP.UsersEO>
<form id="pagerForm" method="post" action="/User">
<input type="hidden" name="pageIndex" value="@ViewBag.PageIndex" />
<input type="hidden" name="pageSize" value="@ViewBag.PageSize" />
<input type="hidden" name="recordCount" value="@ViewBag.RecordCount" />
</form>

<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/User/Add" target="dialog" width="600" height="450" mask="true"
                rel="User_Add"><span>添加用户</span></a> </li>
        </ul>
    </div>
    <table class="list" width="100%" layouth="138">
        <thead>
            <tr>
                <th>
                    用户名
                </th>
                <th>
                    昵称
                </th>
                <th>
                    电话
                </th>
                <th>
                    邮箱
                </th>
                <th>
                    操作
                </th>
            </tr>
        </thead>
        <tbody id="menu_buttons" style="text-align:center;">
            @{
                foreach (var item in Model)
                {
                <tr target="repId" rel="@item.UserId">
                    <td>
                        <div>
                            <span>@item.UserId</span>
                        </div>
                    </td>
                    <td>
                        <span>@item.NickName</span>
                    </td>
                    <td>
                        <span>@item.Phone</span>
                    </td>
                    <td>
                        <span>@item.Email</span>
                    </td>
                    <td>
                        <a class="edit" href="/User/Edit?userId=@item.UserId" target="dialog" mask="true" width="600" height="450" rel="User_Edit">
                            <span>[修改]</span> </a><a class="delete" href="/User/Delete?userId=@item.UserId" target="ajaxTodo" title="确定要删除吗？">
                                <span>[删除]</span> </a>
                    </td>
                </tr>
            
                }
            }
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>共@{@ViewBag.RecordCount}
                条</span></div>
        <div rel="" class="pagination" targettype="navTab" totalcount="@ViewBag.RecordCount" numperpage="@ViewBag.PageSize" pagenumshown="10" currentpage="@ViewBag.PageIndex">
        </div>
    </div>
</div>
